#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
using namespace std;


int main()
{

	/*int a[10];
	a[1] = 2, a[2] = 3, a[3] = 4, a[4] = 1;
	bool tag = true;
	while (tag)
	{
		for (int i = 1; i <= 4; i++)
		{
			cout << a[i] << ' ';
		}
		cout << '\n';
		tag = next_permutation(a+1,a+ 4+1);
	}*/
	char str[10];
	scanf("%s", str);
	for (int i = sizeof(str) / sizeof(str[0]); i >= 0; i--)
	{
		printf("%c", str[i]);
	}
	return 0;
}
